package com.railway.bean;

import java.util.Date;
import java.util.List;

public class User {
	
	private int user_id;//用户id
	
	private String user_name;//用户名
	
	private String user_phone;//电话号码
	
	private String user_password;//密码
	
	private String user_real_name;//真实姓名
	
	private int user_id_type;//用户证件类型
	
	private String user_id_num;//用户证件号
	
	private int user_sex;//用户性别
	
	private String user_email;//用户邮箱
	
	private int passenger_type;//乘客类型(成人/学生票)
	
	private Date register_time;//注册时间
	
	private String consumption_password;//消费密码
	
	private int integra_id;//积分id
	
	private Integra integra;//积分
	
	private int isdelete;//是否被删除
	
	private List<Contact> contact;

	
	public List<Contact> getContact() {
		return contact;
	}

	public void setContact(List<Contact> contact) {
		this.contact = contact;
	}

	public int getUser_id() {
		return user_id;
	}

	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}

	public String getUser_name() {
		return user_name;
	}

	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}

	public String getUser_phone() {
		return user_phone;
	}

	public void setUser_phone(String user_phone) {
		this.user_phone = user_phone;
	}

	public String getUser_password() {
		return user_password;
	}

	public void setUser_password(String user_password) {
		this.user_password = user_password;
	}

	public String getUser_real_name() {
		return user_real_name;
	}

	public void setUser_real_name(String user_real_name) {
		this.user_real_name = user_real_name;
	}

	public int getUser_id_type() {
		return user_id_type;
	}

	public void setUser_id_type(int user_id_type) {
		this.user_id_type = user_id_type;
	}

	public String getUser_id_num() {
		return user_id_num;
	}

	public void setUser_id_num(String user_id_num) {
		this.user_id_num = user_id_num;
	}

	public int getUser_sex() {
		return user_sex;
	}

	public void setUser_sex(int user_sex) {
		this.user_sex = user_sex;
	}

	public String getUser_email() {
		return user_email;
	}

	public void setUser_email(String user_email) {
		this.user_email = user_email;
	}

	public int getPassenger_type() {
		return passenger_type;
	}

	public void setPassenger_type(int passenger_type) {
		this.passenger_type = passenger_type;
	}

	public Date getRegister_time() {
		return register_time;
	}

	public void setRegister_time(Date register_time) {
		this.register_time = register_time;
	}

	public String getConsumption_password() {
		return consumption_password;
	}

	public void setConsumption_password(String consumption_password) {
		this.consumption_password = consumption_password;
	}

	public int getIntegra_id() {
		return integra_id;
	}

	public void setIntegra_id(int integra_id) {
		this.integra_id = integra_id;
	}

	public Integra getIntegra() {
		return integra;
	}

	public void setIntegra(Integra integra) {
		this.integra = integra;
	}

	public int getIsdelete() {
		return isdelete;
	}

	public void setIsdelete(int isdelete) {
		this.isdelete = isdelete;
	}

	public User() {
		// TODO Auto-generated constructor stub
	}

	public User(String user_name, String user_phone, String user_password, String user_real_name, int user_id_type,
			String user_id_num, String user_email, int passenger_type, Date register_time) {
		super();
		this.user_name = user_name;
		this.user_phone = user_phone;
		this.user_password = user_password;
		this.user_real_name = user_real_name;
		this.user_id_type = user_id_type;
		this.user_id_num = user_id_num;
		this.user_email = user_email;
		this.passenger_type = passenger_type;
		this.register_time = register_time;
	}
	
	public User(String user_name, String user_phone, String user_password, String user_real_name,
			int user_id_type, String user_id_num, String user_email, int passenger_type, String consumption_password) {
		super();
		this.user_name = user_name;
		this.user_phone = user_phone;
		this.user_password = user_password;
		this.user_real_name = user_real_name;
		this.user_id_type = user_id_type;
		this.user_id_num = user_id_num;
		this.user_email = user_email;
		this.passenger_type = passenger_type;
		this.consumption_password = consumption_password;
	}

	@Override
	public String toString() {
		return "User [user_id=" + user_id + ", user_name=" + user_name + ", user_phone=" + user_phone
				+ ", user_password=" + user_password + ", user_real_name=" + user_real_name + ", user_id_type="
				+ user_id_type + ", user_id_num=" + user_id_num + ", user_sex=" + user_sex + ", user_email="
				+ user_email + ", passenger_type=" + passenger_type + ", register_time=" + register_time
				+ ", consumption_password=" + consumption_password + ", integra_id=" + integra_id + ", integra="
				+ integra + ", isdelete=" + isdelete + "]";
	}

	public User(int user_id) {
		super();
		this.user_id = user_id;
	}

	public User(int user_id, String user_name, String user_phone, String user_password, String user_email,
			String consumption_password) {
		super();
		this.user_id = user_id;
		this.user_name = user_name;
		this.user_phone = user_phone;
		this.user_password = user_password;
		this.user_email = user_email;
		this.consumption_password = consumption_password;
	}

	
	
	
}
